// 静态方法

class person {
    constructor(name) {
        this.name = name
    }
    say() {
        console.log(this.name)
    }
    static create(name) {
        return new person(name)
    }
}
const p = person.create("tom")
p.say()